const validator = require('express-joi-validation').createValidator(
    {
        //允许保留未定义的字段
        joi: {allowUnknown: true},
        //将错误传递给错误处理中间件
        passError: true
    })

module.exports = validator

